<template>
  <nm-form-dialog ref="form" v-bind="form" v-on="on" :visible.sync="visible_">
    <el-row>
      <el-col :span="20" :offset="1">
        <el-form-item label="车次号：" prop="bus_id">
          <el-input v-model="form.model.bus_id" clearable />
        </el-form-item>
        <el-form-item label="车辆序号：" prop="vehicle_serial">
          <el-input v-model="form.model.vehicle_serial" clearable />
        </el-form-item>
        <el-form-item label="开始时间：" prop="start_time">
          <el-input v-model="form.model.start_time" clearable />
        </el-form-item>
        <el-form-item label="结束时间：" prop="end_time">
          <el-input v-model="form.model.end_time" clearable />
        </el-form-item>
        <el-form-item label="预留类型：" prop="reserve_type">
          <el-input v-model="form.model.reserve_type" clearable />
        </el-form-item>
        <el-form-item label="开始座号：" prop="start_seat_no">
          <el-input v-model="form.model.start_seat_no" clearable />
        </el-form-item>
        <el-form-item label="结束座号：" prop="seat_quantity">
          <el-input v-model="form.model.seat_quantity" clearable />
        </el-form-item>
      </el-col>
    </el-row>
  </nm-form-dialog>
</template>
<script>
import { mixins } from 'netmodular-ui'

const { add, edit, update } = $api.dispatch.bus_reserve_seat

export default {
  mixins: [mixins.formSave],
  data() {
    return {
      title: '座位预留',
      actions: { add, edit, update },
      form: {
        model: {
          /** 车次号 */
          bus_id: '',
          /** 车辆序号 */
          vehicle_serial: '',
          /** 开始时间 */
          start_time: '',
          /** 结束时间 */
          end_time: '',
          /** 预留类型 */
          reserve_type: '',
          /** 开始座号 */
          start_seat_no: '',
          /** 结束座号 */
          seat_quantity: ''
        },
        rules: {}
      }
    }
  }
}
</script>
